home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmFileTransfers
- BackColor = &H00C0C0C0&
- ClientHeight = 2625
- ClientLeft = 1095
- ClientTop = 1530
- ClientWidth = 7425
- ControlBox = 0 'False
- Height = 3030
- Left = 1035
- LinkTopic = "Form4"
- MaxButton = 0 'False
- MDIChild = -1 'True
- MinButton = 0 'False
- ScaleHeight = 2625
- ScaleWidth = 7425
- Top = 1185
- Width = 7545
- WindowState = 2 'Maximized
- Begin CommonDialog CommonDialog1
- Left = 2880
- Top = 1665
- End
- Begin CheckBox chkBinary
- BackColor = &H00C0C0C0&
- Caption = "Binary"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 1170
- TabIndex = 10
- Top = 1260
- Width = 735
- End
- Begin CommandButton cmdSetType
- Caption = "Set Type"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 90
- TabIndex = 9
- Top = 1260
- Width = 975
- End
- Begin TextBox txtPutDstFilename
- Height = 285
- Left = 4290
- TabIndex = 8
- Top = 780
- Width = 2655
- End
- Begin TextBox txtPutSrcFilename
- Height = 285
- Left = 1170
- TabIndex = 7
- Top = 780
- Width = 2655
- End
- Begin CommandButton cmdPutFile
- Caption = "Put File"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 90
- TabIndex = 6
- Top = 780
- Width = 975
- End
- Begin CommandButton cmdGetFile
- Caption = "Get File"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 105
- TabIndex = 5
- Top = 300
- Width = 975
- End
- Begin CommandButton cmdAbort
- Caption = "Abort"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 90
- TabIndex = 4
- Top = 1740
- Width = 975
- End
- Begin TextBox txtGetSrcFilename
- Height = 285
- Left = 1170
- TabIndex = 3
- Top = 300
- Width = 2655
- End
- Begin TextBox txtGetDstFilename
- Height = 285
- Left = 4290
- TabIndex = 2
- Top = 300
- Width = 2655
- End
- Begin CommandButton Command1
- Caption = "..."
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 300
- Left = 6945
- TabIndex = 1
- Top = 300
- Width = 315
- End
- Begin CommandButton Command2
- Caption = "..."
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 300
- Left = 3825
- TabIndex = 0
- Top = 780
- Width = 315
- End
- Begin Label Label2
- BackColor = &H00C0C0C0&
- Caption = "SrcFilename:"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 255
- Left = 1170
- TabIndex = 12
- Top = 60
- Width = 1575
- End
- Begin Label Label3
- BackColor = &H00C0C0C0&
- Caption = "DstFilename:"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 255
- Left = 4290
- TabIndex = 11
- Top = 60
- Width = 1335
- End
- Option Explicit
- Dim foo As Integer
- Sub chkBinary_Click ()
- mainform.FTP1.Type = chkBinary.Value
- End Sub
- Private Sub cmdAbort_Click ()
- MsgBox "Be patient, this may take quite a few seconds"
- foo = ExecuteCommand(FtpActionAbort)
- End Sub
- Private Sub cmdGetFile_Click ()
- mainform.FTP1.SrcFilename = txtGetSrcFilename.Text
- mainform.FTP1.DstFilename = txtGetDstFilename.Text
- foo = ExecuteCommand(FtpActionGetFile)
- End Sub
- Private Sub cmdPutFile_Click ()
- mainform.FTP1.SrcFilename = txtPutSrcFilename.Text
- mainform.FTP1.DstFilename = txtPutDstFilename.Text
- foo = ExecuteCommand(FtpActionPutFile)
- End Sub
- Private Sub cmdSetType_Click ()
- If (chkBinary.Value = 1) Then
- mainform.FTP1.Type = 1
- Else
- mainform.FTP1.Type = 0
- End If
- foo = ExecuteCommand(FtpActionSendType)
- End Sub
- Private Sub Command1_Click ()
- CommonDialog1.CancelError = True
- On Error Resume Next
- CommonDialog1.Action = 2
- If (Err <> 0) Then
- Exit Sub
- End If
- On Error GoTo 0
- txtGetDstFilename.Text = CommonDialog1.Filename
- End Sub
- Private Sub Command2_Click ()
- CommonDialog1.CancelError = True
- On Error Resume Next
- CommonDialog1.Action = 1
- If (Err <> 0) Then
- Exit Sub
- End If
- On Error GoTo 0
- txtPutSrcFilename.Text = CommonDialog1.Filename
- End Sub
- Sub Form_Load ()
- chkBinary.Value = mainform.FTP1.Type
- End Sub
-